#ifndef __TestCommon_h__
#define __TestCommon_h__

#include <boost/test/auto_unit_test.hpp>

#include <string>
#include <stdexcept>
#include <iostream>

//#include <boost/algorithm/string.hpp>

struct CheckExceptionWhat
{
	std::string m_sWith;

	CheckExceptionWhat(const std::string & with) : m_sWith(with)
	{
	};

	bool operator()(const std::exception & with) const
	{
		return (std::string(with.what()).find(with.what()) != std::string::npos);
	};

};

#endif
